home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Eagles Nest BBS 7
/
Eagles_Nest_Mac_Collection_Disc_7.TOAST
/
General Communication
/
CallLogMP2
/
Dial Service
next >
Wrap
Text File
|
1988-06-11
|
2KB
|
55 lines
Modem File = Standard (Call Log)
Modem Script Name = Dial Service
1 Dialog Install "='Now Dialing ',ServiceName"
2 Do Script * "Grab Modem"
3 If Success
4 If Expression "=DialingMode='pulse'"
5 Send Text String "ATDP"
6 Else If Expression "=DialingMode='tone'"
7 Send Text String "ATDT"
8 Else
9 Send Text String "ATD"
10 End If
11 Send Text String "=PhoneNumber,'^M'"
12 Set Variable mysuccess from Expression "=false"
13 Repeat
14 When Line Contains "Connect"
15 If Line Contains "300"
16 Set Comm Param Baud Rate 300
17 Else If Line Contains "1200"
18 Set Comm Param Baud Rate 1200
19 Else If Line Contains "2400"
20 Set Comm Param Baud Rate 2400
21 End If
22 Set Variable online from Expression "=true"
23 Dialog Discard
24 Set Variable mysuccess from Expression "=true"
25 Set Variable timeStamp from Date & Time
26 Append to File "Call Log"
27 Send Local to File "•------------------------------------------------------------------------------•"
28 Send Local to File "^M"
29 Send Local to File "='Call to ',ServiceName,' via ',PhoneNumber,' placed at ',timeStamp,'.'"
30 Send Local to File "^M"
31 Capture Off
32 Set Variable callTimer from Expression "=TICKCOUNT"
33 Or When Text Equals "busy"
34 Send Text String "A/"
35 Wait for Text "a/"
36 Cycle
37 Or When Text Equals "no dialtone"
38 Dialog Discard
39 Alert * OK "The modem is not connected to a good phone line."
40 Return Failure
41 Or When Seconds Have Passed "=30"
42 Dialog Discard
43 Alert * OK "='No answer after dialing ',ServiceName"
44 Return Failure
45 End When
46 Until Expression "=mysuccess"
47 Else
48 Dialog Discard
49 Set Variable mysuccess from Expression "=false"
50 End If
51 Return Expression "=mysuccess"